let shell = require('shelljs')
module.exports = function () {
    return new Promise((resolve, reject) => {
        shell.cd('/home/lhk/opc-h5')
        shell.exec('git pull')
        shell.exec('docker build -t opc-h5 ./')
        shell.exec('docker stop opc-h5')
        shell.exec('docker rm opc-h5')
        shell.exec('docker run --name opc-h5 -tid -p 3100:3100 opc-h5')
        resolve()
    })
}
